//
//  Common.swift
//  Weibo
//
//  Created by 汪博文 on 2016/11/16.
//  Copyright © 2016年 Wbw. All rights reserved.
//

import UIKit
//第三方登录授权配置信息
let client_id = "3886172186"
let client_secret = "5dea7cc848e501fdacab0733feef2026"
let redirect_uri = "https://www.baidu.com"

//定义切换跟视图控制器的通知名称
let kChoseRootViewController = "kChoseRootViewController"

//定义无网络通知
let errorString = "世界上最遥远的距离就是没有网络"

//定义一个随机色方法
func randomColor() -> UIColor {
    let r =  CGFloat(arc4random() % 256) / 255.0
    let g =  CGFloat(arc4random() % 256) / 255.0
    let b =  CGFloat(arc4random() % 256) / 255.0
    return UIColor(red: r, green: g, blue: b, alpha: 1)
    
}

